/* global Vue */
import Router from 'vue-router';
import Home from '@/pages/index/main';
import categoryList from '@/pages/categoryList/main';
import goods from '@/pages/goods/main';
import Topic from '@/pages/topic/main';
import TopicDetail from '@/pages/topicdetail/main';
import collectlist from '@/pages/collectlist/main';
import category from '@/pages/category/main'
import cart from '@/pages/cart/main';
import user from '@/pages/my/main';
import login from '@/pages/login/main';
Vue.use(Router)

export const router = new Router({
  routes: [
    { path: '/', redirect: '/home' },
    {
      path: '/home', component: Home,
    },
    {
      path: '/categoryList',
      component: categoryList
    },
    { path: '/goods', component: goods },
    { path: '/topic', component: Topic },
    { path: '/topicdetail', component: TopicDetail },
    { path: '/collectlist', component: collectlist },
    { path: '/category', component: category },
    { path: '/shop', component: cart },
    { path: '/user', component: user },
    { path: '/login', component: login }
  ]
})
